package com.sfac.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.sfac.javaSpringBoot.modules.account.entity.User;
import com.sfac.javaSpringBoot.modules.test.entity.Result;
import com.sfac.javaSpringBoot.modules.test.entity.Search;

/**
 * 定义接口，实现接口在UserServicelmpl.class中
 */
public interface UserService {

    Result<User> insertUser(User user);

    Result<User> updatetUser(User user);

    User getUserById(int id);

    Result<User> getUserByUserNameAndPassword(String userName,String password);//根据用户输入的用户名和密码进行查询

    Result<Object> deleteUserById(int id);

    PageInfo<User> getUsersBySearch(Search search);






}
